JavaScript

A5.u.elementshow Method

Syntax

A5.u.element.show(element[,animation])

Arguments

elementelementstring

A pointer to a DOM element or the ID of an element.

animationobject

Animation settings.

typestring

Animation type. Can be one of the following properties: 'none', 'fade', 'slide', 'blind', 'clip', 'drop', 'explode', 'fold', 'puff', 'scale', 'size', or 'pulsate'.

durationnumber

The duration of the animation in milliseconds.

onCompletefunction

Function to call when the show is complete.

Description

Show an element that is hidden.

Discussion

Animation can be specified by passing in animation settings. Animation uses jQuery, if the jQuery library is not available, a plain show will be done.

Example

// assume "ele" is a pointer to a hidden element
var animate = { 
	type: 'slide', 
	duration: 300
};
A5.u.element.show(ele,animate);